package com.wealth.system.service;

import java.util.List;

import iaas.service.IBaseService;

import com.wealth.system.entity.Corporation;
import com.wealth.system.entity.User;

/**
 * 
 * @author chan
 */

public interface ICorpService extends IBaseService<Corporation> {

	/** ------------------------------- 扩展  ------------------------------*/
	
	/**
	 * 企业名是否唯一
	 */
	public boolean unique(String corpname) throws Exception;
	
	/**
	 * 开户
	 */
	public void openAccount(Corporation corp,User user)throws Exception;
	
	/**
	 * 编辑企业账户
	 */
	public void updateAccount(Corporation corp,User user)throws Exception;
	
	
	/**
	 * 查询状态正常的企业
	 */
	public List<Corporation> findByStatus(Integer status) throws Exception;
	


}
